using UnityEngine;
using System.Collections;

public class Grasshopper : DrawableGameObject 
{
	public Texture2D[] textures;
	float speed;
	
	public override void Start () 
	{
		base.Start();
		base.SetAnimations(textures, null,null,null);
		speed = Random.Range(0.01f, 0.08f);
	}
	
	void Update () 
	{
		transform.Translate(-speed,0,0);
		RunAnimations();
	}
	
	public void RunAnimations()
	{
		base.gameAnimation.CalculateFps(10);
		base.RunAnimation("Stand", "Loop");
	}
}
